;(function () {
  'use strict';
  angular.module('controllers.alarmDataAnalysis.abnormalTransDataMining')
    .controller('judgeFaultByAlaBackCodeCtrl', judgeFaultByAlaBackCodeCtrl);

  function judgeFaultByAlaBackCodeCtrl($scope, CoreService,judgeFaultByAlaBCService,$mdDialog,COREDATA) {
    $scope.judgeFaultByAlaBC = judgeFaultByAlaBCService;
    judgeFaultByAlaBCService.initSelectMenu();   //初始化页面下拉框数据
    $scope.exportUrl = COREDATA.FORMPREFIX + 'abnormalTrans/dataMining/judgeFaultByAlaBackCode/exportExcelData';
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      judgeFaultByAlaBCService.reset();
      $mdDialog.hide();
    });
  }
  judgeFaultByAlaBackCodeCtrl.$inject = ['$scope','CoreService','judgeFaultByAlaBCService','$mdDialog','COREDATA'];
})();